﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<div class="fluid item">
    <div class="inner border">
        <span>
            <%//if (ViewData["EnableAddProductCompare"] != null && (bool)ViewData["EnableAddProductCompare"])
                {%>
            <a href="javascript:" onclick="displayProduct('<%:Model.Id%>')" class="padd_compare"
                data-tooltip="one1" tipid='<%:"tip"+ Model.Id.ToString()%>'>
                <div class="imageP">
                    <span class="saleoff">-10%</span><%-- //todo: calculate sale off--%>
                    <%--<img src="/Content/Images/addProduct.gif" width="16px" alt="Thêm <%:Model.Title%> vào danh sách so sánh" />  width="139" height="95" --%>
                    <img src="<%: Model.ImageUrl %>" alt="<%: Model.Title%>" />
                </div>
            </a>
            <%}%>
        </span>
        <div class="ptitle">
            <a title="<%: Model.Title%>" href="<%: Model.View %>" data-tooltip="one1" tipid='<%:"tip"+ Model.Id.ToString()%>'>
                <%: Model.Title%>
            </a>
        </div>
        <div class="oldprice">
            <a href="#" alt="Biểu đồ lịch sử giá">
                <%: Model.PriceDisplay%></a></div>
        <div class="price">
            <a href="#" alt="Biểu đồ lịch sử giá">
                <%:  Model.LastPriceDisplay%></a></div>
        <div id="bando" class="store">
            <a href="#?w=800" class="poplight" rel="product_info" poplightid='<%:"poplight" + Model.ProviderId.ToString()%>'>
                <%:Model.ProdiverName%><img src="/Content/Images/spacer.gif" class="mapIcon" alt="Bản đồ"></a>
        </div>
        <div class="action">
            <a href="#" class="compare">So sánh giá</a></div>
    </div>
    <!--HTML for the tooltips-->
    <%-- <div class="stickytooltip">
        <div id='<%:"tip" + Model.Id.ToString()%>' class="atip">
            <div class="ptitle">
                <%: Model.Title%></div>
            <div class="imageP">
                <img src="<%:Model.ImageUrl %>" alt="<%: Model.Title %>">
            </div>
            <br>
            <div class="pDetail">
                <%:MvcHtmlString.Create(Model.Description)%>
            </div>
        </div>
        <div class="stickystatus">
        </div>
    </div>--%>
</div>
